import {Component} from 'react'

class Header extends Component{
    
    render(){
        console.log('Header render');
        // 获取父组件在属性标签上传过来的数据
        let {num, school} = this.props;
        // console.log('Header:', this);
        return <div>
            <h3>Header 组件</h3>
            <p>Header props num: {num}</p>
            <p>Header props school: {school}</p>
        </div>
    }
}

export default Header;